package cn.atzxc.qy.service;

import cn.atzxc.qy.domain.Address;

import java.util.Date;
import java.util.List;

public interface AddressService {
    //通过 token 获取到的用户ID 查询指定用户所有的数据
    List<Address> getAddressList(String subject) throws Exception;

    int deleteAddressByAddressId(String addressid);

    int addAddress(String token, Address address) throws Exception;

    int updateAddressById(String token, Address address) throws Exception;

    int setDefaultAddress(String token, Address address, Date date) throws Exception;

    List<Address> selectAddressList();
}
